/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package GUI.Jogo;

/**
 *
 * @author Igor
 */
public class FramePanelFimJogo extends javax.swing.JPanel {

    //Atributos
    private FrameJogo frameJogo;
    
    /**
     * Creates new form FramePanelFimJogo
     */
    public FramePanelFimJogo(FrameJogo frameJogo) {
        initComponents();
        this.frameJogo = frameJogo;
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        textFimDeJogo = new javax.swing.JLabel();
        buttonFecharAplicacao1 = new javax.swing.JButton();
        buttonbuttonVoltarMenu1 = new javax.swing.JButton();

        textFimDeJogo.setText("Fim de Jogo! Obrigado por jogar.");

        buttonFecharAplicacao1.setText("Fechar Aplicação");
        buttonFecharAplicacao1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonFecharAplicacao1ActionPerformed(evt);
            }
        });

        buttonbuttonVoltarMenu1.setText("Voltar ao Menu");
        buttonbuttonVoltarMenu1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonbuttonVoltarMenu1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(buttonFecharAplicacao1)
                    .addComponent(textFimDeJogo)
                    .addComponent(buttonbuttonVoltarMenu1))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(textFimDeJogo)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(buttonFecharAplicacao1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(buttonbuttonVoltarMenu1)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void buttonFecharAplicacao1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonFecharAplicacao1ActionPerformed
        // TODO add your handling code here:
        this.frameJogo.fecharAplicacao();
    }//GEN-LAST:event_buttonFecharAplicacao1ActionPerformed

    private void buttonbuttonVoltarMenu1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonbuttonVoltarMenu1ActionPerformed
        // TODO add your handling code here:
        this.frameJogo.getPanelParametros().limpaPanelParametros();
        this.frameJogo.ativarPanelParametros();
    }//GEN-LAST:event_buttonbuttonVoltarMenu1ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton buttonFecharAplicacao1;
    private javax.swing.JButton buttonbuttonVoltarMenu1;
    private javax.swing.JLabel textFimDeJogo;
    // End of variables declaration//GEN-END:variables
}
